package com.sunjob.loginserver.controller;

import cn.dev33.satoken.config.SaSsoConfig;
import cn.dev33.satoken.sso.SaSsoHandle;
import cn.dev33.satoken.stp.StpUtil;
import cn.dev33.satoken.util.SaResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by IntelliJ IDEA.
 *
 * @Author : Wangzurong
 * @create 2022-07-24 18:28
 */
@RestController
public class LoginServerController {
    /**
     * Sa-Token-SSO Server端 Controller
     * /sso/doLogin 登录接口
     */
    @RestController
    public class SsoServerController {

        @RequestMapping("/sso/*")
        public Object ssoRequest() {
            return SaSsoHandle.serverRequest();
        }



    }
}
